package com.example.androidlearning2422.ui.kotlin

fun main(){
    print("Please input telephone number:")
    val telephone = readln().replace(" ", " ").replace("-", "")
    println(telephone)
    if (telephone.length != 11) {
        println("Telephone is Valid")
    } else {
        val q3 = telephone.substring(0,3)
        val h4 = telephone.substring(7,11)
        println("$q3****$h4")
    }
}